API_KEY = "a2c903cc-b31e-4547-9299-b6d07b7631ab"


function encryptApiKey() {
    var t = API_KEY
        , e = t.split("")
        , r = e.splice(0, 8);
    return e.concat(r).join("")
}

encryptTime = function (t) {
    var e = (1 * t + 1111111111111).toString().split("")
        , r = parseInt(10 * Math.random(), 10)
        , n = parseInt(10 * Math.random(), 10)
        , o = parseInt(10 * Math.random(), 10);
    return e.concat([r, n, o]).join("")
}

var btoa = function (val) {
    return Buffer.from(val).toString('base64')
}

comb = function (t, e) {
    var r = "".concat(t, "|").concat(e);
    return btoa(r)
}

function getApiKey(t) {
    // var t = (new Date).getTime()
    var  e = encryptApiKey()
    // console.log(t)
    return t = encryptTime(t),
        comb(e, t)
}


// console.log(getApiKey())




